package com.wetao.lib_common.common.presenter;

import android.content.Context;

import com.wetao.lib_common.common.contract.RegisterContract;
import com.wetao.lib_common.utils.JsonUtils;

import java.util.HashMap;

import okhttp3.RequestBody;

/**
 * 登录 P
 */
public class RegisterPresenter extends RegisterContract.Presenter {

    private Context context;

    public RegisterPresenter(Context context) {
        this.context = context;
    }


    @Override
    public void getRegister(HashMap<String, String> map, boolean isDialog, boolean cancelable) {
        String json =(JsonUtils.getmGson()).toJson(map);
        RequestBody requestBody =  RequestBody.create(okhttp3.MediaType.parse("application/json; charset=utf-8"),json);

    }
}
